<?php
/**
  * tframe
  *
  *
  * @copyright Copyright (c) 2012 - 2014, huxiaomin
  * @author huxiaomin    2012-7-6  
  * @since		Version 1.0
  *
  */

class TImport{
	/**
	 * 
	 * @var array(0=>file_dir,1=>suffix)
	 */
    static $imports = array();
    
    /**
     * import 路径，方便 autoload
     * @param string $file_dir
     * @param string $suffix
     */
    static public function import($file_dir,$suffix='.php'){
    	if (empty($file_dir)){
    	   return false;
    	}
    	if (!in_array(substr($file_dir,-1),array('/','\\')) ){
    	   $file_dir .= '/';
    	}
        self::$imports[$file_dir.$suffix] = array($file_dir,$suffix);
    }

}
    